import Vue from 'vue'
import Router from 'vue-router'
import WhiteBoard from '@/page/WhiteBoard'
import Home from '@/page/Home'
import IndexWhite from '@/page/IndexWhite'
import wsBoard from '@/page/WsBoard/WhiteBoard'
// import ElementUI from 'element-ui'
// import 'element-ui/lib/theme-chalk/index.css'
Vue.use(Router)

// Vue.use(ElementUI)//全局使用ElementUI
export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',   //主页面登录注册
      component: Home
    },
    {
      path: '/indexWhite',
      name: 'IndexWhite',   //白板首页
      component: IndexWhite
    },
    {
      path: '/white',
      name: 'WhiteBoard',   //白板详情页面
      component: WhiteBoard
    },
    {
      path: '/wsBoard',
      name: 'wsBoard',   //白板详情页面
      component: wsBoard
    }
  ]
})
